#include "PreHeader.h"
#include "cFile.h"

const tChar* eFileMode::ToChar(eFileMode::TYPE mode)
{
    switch (mode)
    {
    case eFileMode::RT:
        return "rt";
    case eFileMode::RB:
        return "rb";
    case eFileMode::WT:
        return "wt";
    case eFileMode::WB:
        return "wb";
    case eFileMode::AT:
        return "at";
    case eFileMode::AB:
        return "r+b";
        //return "ab";
    }

    return NULL;
}
